package com.youlai.boot.system.converter;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youlai.boot.system.model.bo.WxKfRecordBO;
import com.youlai.boot.system.model.entity.WxKfRecord;
import com.youlai.boot.system.model.form.WxKfRecordForm;
import com.youlai.boot.system.model.vo.WxKfRecordPageVO;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;

/**
 * 护理记录表转换器
 *
 * @author Ray Hao
 * @since 2025-09-01
 */
@Mapper(componentModel = "spring")
public interface WxKfRecordConverter {

    WxKfRecordPageVO toPageVo(WxKfRecordBO bo);

    Page<WxKfRecordPageVO> toPageVo(Page<WxKfRecordBO> bo);

    WxKfRecordForm toForm(WxKfRecord entity);

    @InheritInverseConfiguration(name = "toForm")
    WxKfRecord toEntity(WxKfRecordForm entity);
}